cmake_minimum_required(VERSION 3.20) # 或者更高版本

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)

find_package(GTest REQUIRED)

add_compile_options(-g -O0 -fno-inline-functions)

file(GLOB_RECURSE UT_SOURCES "*.cpp")

add_executable(${UT} ${UT_SOURCES})

target_include_directories(${UT} PRIVATE
    ${UTILS_INC}
)

target_link_libraries(${UT} PRIVATE
    GTest::GTest
    GTest::gmock
    GTest::Main
    ${UTILS}
)